<script setup lang="ts">
import { onMounted, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';

const router = useRouter();
const route = useRoute();

const url = ref<string>();

onMounted(() => {
    url.value = route.query.url as string;
});
</script>

<template>
    <div class="w-full h-full">
        <iframe v-if="url" class="w-full h-full border-none" :src="url"></iframe>
    </div>
</template>

<style lang="scss"></style>